package org.csu.mall.service;

import org.csu.mall.common.UniformResponse;
import org.csu.mall.vo.OrderVO;

import java.math.BigInteger;


public interface IOrderService {
    UniformResponse<OrderVO> getOrderDetail(BigInteger orderNo);//根据订单号获取订单信息
    UniformResponse payToSaveOrder(Integer shippingId, Integer paymentType);//从购物车支付，支付成功后生成订单
    UniformResponse<String> commitOrder(Integer shippingId, Integer paymentType);//提交订单
    UniformResponse getMyOrders(Integer pageNum,Integer pageSize);//查看我的订单
    UniformResponse cancelOrder(BigInteger orderNo,Integer orderStatus,Integer pageNum,Integer pageSize);//取消订单
    UniformResponse deleteOrder(BigInteger orderNo,Integer orderStatus,Integer pageNum,Integer pageSize);//删除订单
    UniformResponse confirmGoods(BigInteger orderNo);//确认收货
    //后台订单管理
    UniformResponse getOrdersForAdmin(Integer pageNum,Integer pageSize);//管理员查看订单
    UniformResponse send_goods(BigInteger orderNo);//发货

}
